<template>
  <view class="search">
    <view class="search-box" @click="goToSearch">
      <text class="icon">🔍</text>
      <text class="placeholder">搜索商家、商品名称</text>
    </view>
  </view>
</template>

<script setup>
const goToSearch = () => {
  uni.navigateTo({
    url: '/pages/search/search'
  })
}
</script>

<style>
.search {
  padding: 20rpx;
  background: #fff;
}
.search-box {
  display: flex;
  align-items: center;
  height: 72rpx;
  background: #f5f5f5;
  border-radius: 36rpx;
  padding: 0 30rpx;
}
.icon {
  font-size: 32rpx;
  margin-right: 10rpx;
  color: #999;
}
.placeholder {
  font-size: 28rpx;
  color: #999;
}
</style> 